<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>项目评级-详细信息</title>
		<link href="__PUBLIC__/home/css/style.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" href="__PUBLIC__/home/css/public.css" />	
		<link href="__PUBLIC__/home/css/select.css" rel="stylesheet" type="text/css" />
		<script language="JavaScript" src="__PUBLIC__/home/js/jquery.js"></script>
		<script type="text/javascript" src="__PUBLIC__/home/js/jquery.idTabs.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/home/js/select-ui.min.js"></script>

		<link rel="stylesheet" href="__PUBLIC__/kindeditor/themes/default/default.css" />
		<script type="text/javascript" src="__PUBLIC__/kindeditor/kindeditor-min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/kindeditor/lang/zh-CN.js"></script>
		<script type="text/javascript">
			var editor,editor1;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[id="item_content"]', {
					uploadJson : '{:U('kindeditor/upload_json',array('dir'=>image))}',
					fileManagerJson : '{:U('kindeditor/file_manager_json')}',
					items : ['fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist','insertunorderedlist', '|', 'emoticons', 'image', 'link'],
					allowFileManager : true,
					urlType : 'domain',
					afterCreate : function() {
						this.sync(); 
					},
					afterBlur:function(){ 
						this.sync(); 
					}
				});
				editor.readonly(true);
				editor1 = K.create('textarea[id="com_content"]', {
					uploadJson : '{:U('kindeditor/upload_json',array('dir'=>image))}',
					fileManagerJson : '{:U('kindeditor/file_manager_json')}',
					items : ['fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist','insertunorderedlist', '|', 'emoticons', 'image', 'link'],
					allowFileManager : true,
					urlType : 'domain',
					afterCreate : function() {
						this.sync(); 
					},
					afterBlur:function(){ 
						this.sync(); 
					}
				});
				editor1.readonly(true);

				var uploadbutton = K.uploadbutton({
					button : K('#uploadButton')[0],
					fieldName : 'imgFile',
					url : '{:U('kindeditor/upload_json',array('dir'=>image))}',
					afterUpload : function(data) {
						if (data.error === 0) {
							var url = K.formatUrl(data.url, 'domain');
							K('#com_licence').val(url);
						} else {
							alert(data.message);
						}
					},
					afterError : function(str) {
						alert('自定义错误信息: ' + str);
					}
				});
				uploadbutton.fileBox.change(function(e) {
					uploadbutton.submit();
				});
			});

			$(document).ready(function(e) {
			    $("#indus_id,#item_province,#item_city").uedSelect({
					width : 150			  
				});
			});
			
			function showcity(province){
				$("#item_city").empty();
				if(province.length>0){
					$("#item_city").append("<option value='' selected>请选择市</option>");
					$("#item_city").prev().find(".uew-select-text").html("请选择市");
					$.getJSON("{:U('index/getcity')}&province="+province,function(result){
						var data=result.data;
						$.each(data, function(i, v){
							$("#item_city").append("<option value='"+v['city']+"'>"+v['city']+"</option>");
						});
					});
				}
			}
		</script>
	</head>

	<body>
	<div class="head">
			<img src="__PUBLIC__/home/images/title.png"  />
			<p><?=date('Y')?>年<?=date('m')?>月<?=date('d')?>日&nbsp;<?=date('H')?>时</p>
		</div>
		<div class="formbody">
			<form name="myform" id="myform" action="{:U('index/indexinfo')}" method="post">
				<ul class="forminfo">
					<li>
						<label>项目名称</label>
						<input name="info[item_name]" id="item_name" type="text" class="dfinput" datatype="*5-30" errormsg="项目名称范围在5~30位之间！" maxlength="50" value="{$iteminfo.item_name}" readonly /><i class="Validform_checktip"></i></li>
					<li>
						<label>行业分类</label>
						<div class="vocation">
							<select id="indus_id" name="info[indus_id]" datatype="*" errormsg="行业分类不能为空！" disabled>
							<option value="" selected>请选择行业分类</option>
							<volist name="indusinfo" id="data" key="key">
								<option value="{$data.indus_id}" <if condition="$data.indus_id eq $iteminfo['indus_id']">selected</if> <if condition="$data.childnum gt 0">disabled</if>>{$data.indus_title}</option>
								<if condition="$data.childnum gt 0">
									<volist name="data.child" id="child" key="keyc">
										<option value="{$child.indus_id}" <if condition="$child.indus_id eq $iteminfo['indus_id']">selected</if>>--{$child.indus_title}</option>
									</volist>
								</if>
							</volist>
						</select>
						</div>
						<i class="Validform_checktip"></i>
					</li>
					<li class="lii">
						<label>地域信息</label>
						<div class="vocation">
							<select id="item_province" name="info[item_province]" datatype="*" errormsg="省不能为空！" onchange="showcity(this.value);" disabled>
							<option value="" >请选择省</option>
							<volist name="provinces" id="data" >
								<option value="{$data.province}" <if condition="$data.province eq $iteminfo['item_province']">selected</if>>{$data.province}</option>
							</volist>
						</select>
						</div>
						<div class="vocation" style="padding-left:10px;">
							<select id="item_city" name="info[item_city]" datatype="*" errormsg="市不能为空！" disabled>
							<option value="" >请选择市</option>
							<volist name="cities" id="data" >
								<option value="{$data.city}" <if condition="$data.city eq $iteminfo['item_city']">selected</if>>{$data.city}</option>
							</volist>
						</select>
						</div>
						<i class="Validform_checktip"></i>
					</li>
					<li>
						<label>公司名称</label>
						<input name="info[item_company]" id="item_company" type="text" class="dfinput" datatype="*" errormsg="公司名称不能为空！" maxlength="30" value="{$iteminfo.item_company}" readonly /><i class="Validform_checktip"></i></li>
					<li>
						<label>成立时间</label>
						<input name="info[com_foundtime]" id="com_foundtime" type="text" class="dfinput" datatype="*"  errormsg="公司成立时间不能为空！" maxlength="20" value="{$iteminfo.com_foundtime}" readonly /><i class="Validform_checktip"></i></li>
					<li>
						<label>营业执照</label>
						<input name="info[com_licence]" id="com_licence" type="text" class="dfinput" value="{$iteminfo.com_licence}" readonly />&nbsp;<a href="{$iteminfo.com_licence}" target="_blank">点击查看</a><i class="Validform_checktip"></i></li>
					<li>
						<label>公司地址</label>
						<input name="info[item_address]" id="item_address" type="text" class="dfinput" datatype="*" errormsg="公司地址不能为空！" maxlength="100" value="{$iteminfo.item_address}" readonly /><i class="Validform_checktip"></i></li>
					<li>
						<label>公司网址</label>
						<input name="info[com_weburl]" id="com_weburl" type="text" class="dfinput" datatype="url" errormsg="公司网址不能为空！" maxlength="100" value="{$iteminfo.com_weburl}" readonly /><i class="Validform_checktip"></i></li>
					<li>
						<label>公司简介</label>
						<textarea name="info[com_content]" id="com_content" cols="" rows="" class="textinput" style="height: 200px;width:700px;" readonly>{$iteminfo.com_content}</textarea></li>
					<li>
						<label>股权比例</label>
						<textarea name="info[com_ownership]" id="com_ownership" cols="" rows="" class="textinput" style="height: 50px;" datatype="*" errormsg="股权比例不能为空！" maxlength="200" readonly>{$iteminfo.com_ownership}</textarea><i class="Validform_checktip"></i></li>
					<li>
						<label>公司其他</label>
						<textarea name="info[com_remarks]" id="com_remarks" cols="" rows="" class="textinput" style="height: 50px;" datatype="/^\s*$/|*" errormsg="公司其他不能为空！" maxlength="200" readonly>{$iteminfo.com_remarks}</textarea><i class="Validform_checktip"></i></li>
					<li>
						<label>联系人</label>
						<input name="info[item_linkmen]" id="item_linkmen" type="text" class="dfinput" datatype="*2-10" errormsg="联系人在2~10位之间！" maxlength="20" value="{$iteminfo.item_linkmen}" readonly /><i class="Validform_checktip"></i></li>
					<li>
						<label>联系电话</label>
						<input name="info[item_linkphone]" id="item_linkphone" type="text" class="dfinput" datatype="*" errormsg="联系电话不能为空或格式不正确" maxlength="phone|mobile" maxlength="30" value="{$iteminfo.item_linkphone}" readonly /><i class="Validform_checktip"></i></li>
					<li>
						<label>项目简介</label>
						<textarea name="info[item_content]" id="item_content" cols="" rows="" class="textinput" style="height: 250px;width:700px;">{$iteminfo.item_content}</textarea>
					</li>
					 <li>
						<label>评分</label>
						<input name="info[score]" type="text" id="score" class="dfinput" datatype="*" value="{$iteminfo.score}" placeholder="评分数值在0-100" readonly /></li>
					<li> 
				</ul>
			</form>

		</div>
		<div class="bottom">
			<p>技术支持：&nbsp;西安弈聪信息技术有限公司&nbsp;&nbsp;<?=date('Y')?>年<?=date('m')?>月<?=date('d')?>日</p>
		</div>
		
	</body>
	<script>
			$(function(){
				$("#myform").Validform({
					//tiptype:2
					tiptype:function(msg,o,cssctl){
						var objtip=o.obj.siblings(".Validform_checktip");
						cssctl(objtip,o.type);
						objtip.text(msg);
					}
				});
			});
		</script>
		<script type="text/javascript">
            // $("#score").on("keyup",function(e){
            // 	this.value=this.value.replace(/\D/g,'');
            // 	if(this.value>100){
            // 		this.value=100}
            // 	if(this.value<0){
            // 		this.value=0}
            // })
        </script>
</html>